home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 013 / cmd185.dqc / CMD185.DOC
Encoding:
Text File  |  1984-06-16  |  11.5 KB  |  302 lines

  1. COMMAND.COM 1.85
  2. by AN IBMer who cared about us IBM-PCers
  3.  
  4. Run the BASIC program called CMD185.BAS and it will create you
  5. a .COM program called CMD185.COM  then rename it COMMAND.COM
  6. AND IT WILL BE YOUR NEW COMMAND.COM, COPY IT TO OTHER DISKS AND
  7. YOU WILL BE AMAZED AT WHAT IT CAN DO FOR YOU. JUST TYPE THE WORD
  8. COMMAND AND IT WILL BOOT ITSELF, IT WILL REMAIN RESIDENT AT ALL TIMES
  9. AND HAS LOTS OF NEW COMMANDS IMBEDED IN IT.. GOOD LUCK......
  10. P.S. You have to del your other COMMAND.COM for this to work
  11. as it is a new replacement and is not an official DOS.
  12.  
  13. NEW OR MODIFIED INTERNAL COMMANDS
  14.  
  15. These are modifications made to COMMAND.COM 1.10.
  16. Compatibility has been preserved with DOS and BIOS version 1.10.
  17. Either version of COMMAND.COM is compatible with DOS and BIOS 1.10
  18. and also 1.82 which supports 40 or 80 track single or double sided
  19. drives in any combination, 1.84 which is an enhanced version of
  20. 1.82 that supports a simulated drive in memory and 1.85 which is an
  21. enhanced version of 1.84 that supports a Winchester drive.
  22. Unlike command 1.83, there is no transient version and the entire
  23. program remains resident in low memory.
  24. This eliminates the occasional prompts for a DOS disk in drive "A"
  25. but some systems with very little memory might not run some large
  26. programs and utilities such as DISKCOPY might not run very efficiently.
  27.  
  28. The principal enhancements of 1.85 over 1.84 are:
  29.  
  30.  1. User defined aliases.
  31.  2. Keyboard stack.
  32.  3. User code area.
  33.  4. Hardware reset support.
  34.  5. Date and time display.
  35.  6. Form feed command for printer.
  36.  7. Peek ahead on batch files (compatible with BAT.COM).
  37.  8. A second alternate drive.
  38.  9. Full screen pauses for the type command.
  39. 10. Switch to toggle the keyboard stack on and off.
  40.        (compatible with FULISTPC.COM).
  41.  
  42.  
  43. KEYBOARD STACK
  44.  
  45. A circular stack of 256 bytes stores all new or edited commands that
  46. are entered from the keyboard. One or two character commands are not
  47. saved.
  48. See the stack command.
  49. The up and down arrows are used to cycle through the stack in either
  50. direction. The currently displayed command line is executed when enter
  51. is pressed.
  52. After executing a command, the stack pointer is set between the current
  53. command and the next one. Therefore the previous command can always be
  54. recalled by pressing the up arrow. If the current command is new, it
  55. is placed at the end of the stack and the stack pointer points between
  56. the last command and the first one entered. The 1st command may be lost
  57. if the stack has filled up and wrapped around to the beginning.
  58. At the DOS prompt, the input/browse mode (as opposed to the edit mode)
  59. is active. When any non character key is pressed such as the F1 thru
  60. F10 on the left or the horizontal arrow keys on the right, the edit
  61. mode becomes active.
  62. Once in the edit mode, the stack is not accessible until you hit enter.
  63. A quick exit from the edit mode is ESC and enter. The stack is then
  64. ready for cycling.
  65.  
  66.  
  67. BAT.COM COMPATIBILITY
  68.  
  69. The batch variables have been moved to the lowest part of CMD185.
  70. This provides continuous support for Frank Canova's batch processor
  71. as they will remain in the same locations in subsequent releases of
  72. CMD18X and will remain compatible with BAT.COM if it has been
  73. patched for CMD185.
  74. The incompatability that was introduced with the batch look ahead
  75. feature of 1.84 has been resolved in 1.85.
  76. My apologies to those who were inconvenienced.
  77.  
  78.  
  79. ALIAS newname oldname
  80.  
  81. Any internal or external command name may be changed to an alias of
  82. the user's choice. The newname may be 1 to 8 characters in length.
  83. Any of the legal characters as defined for file names and extensions
  84. may be used.
  85. The old name may be any internal command or a file specification
  86. which may include a drive designator and file extension.
  87. Note that trailing parameters cannot be part of the new name.
  88. Note also that some previous aliases have been retired and that
  89. the standard DOS 1.1 aliases of DEL and REN are built in.
  90.  
  91. A few examples:
  92.         ALIAS DB DEBUG
  93.         ALIAS FORMAT FMT184.COM
  94.         ALIAS DC  B:DISKCOPY
  95.         ALIAS DBB B:DEBUG.COM
  96.         ALIAS D DIR
  97.         ALIAS H HELP
  98.         ALIAS AKA ALIAS
  99.  
  100. The alias list is built in memory just above command and
  101. may be any length.
  102. Because of this length flexibility, all aliases must be defined
  103. prior to the installation of resident extensions. After a program
  104. uses INT 27H to terminate but stay resident, the ALIAS command
  105. is no longer available.
  106. If ALIAS is not displayed by the HELP command, it is not available.
  107. Once an alias has been defined, there is no quick way to cancel it.
  108. It is convenient to define the aliases in an AUTOEXEC.BAT file.
  109.  
  110.  
  111. ALT [d1:][,d2:]
  112.  
  113. A provision is made for defining 1 or 2 alternate default drives.
  114. When this option is active, the alternate default drives are searched
  115. for any command that DOS receives from either the keyboard or a batch
  116. file, if it cannot be found on the current default drive.
  117. The alternates are searched in the order in which they were specified.
  118. Do not specify the same drive twice as either current or alternate.
  119. This only applies to .COM, .EXE or .BAT files that are to be
  120. executed and not to files that are included as parameters of a command.
  121. The default is no alternate drives. The ALT command may be followed
  122. by 0, 1 or 2 drive designators. If 0, the currently defined alternates
  123. are nullified.
  124.  
  125.  
  126. BOOT
  127.  
  128. This initiates the same function as CNTL-ALT-DEL except power-on
  129. diagnostics are bypassed and date and time are retained.
  130. If the date is found to be non zero, the DATE$ command is executed
  131. instead of the DATE and TIME commands.
  132. A hardware reset is also supported which senses the generation
  133. of simultaneous parity checks for the I/O channel and the system
  134. board. If either parity check is active by itself, the normal action
  135. is taken, i.e. the system hangs with an error message on the screen.
  136. If both are active together, the BOOT command is executed.
  137. This is advantageous to programmers who often hang up their machines
  138. while debugging new code. This reboot method will fail if the
  139. non maskable interrupt enable latch at I/O port A0H has been reset.
  140. The CNTL-ALT-DEL combination, on the other hand will fail whenever
  141. the processor hangs in a loop with interrupts disabled.
  142. The hardware modification will be published in a separate document.
  143.  
  144.  
  145. COLOR [40]
  146.  
  147. Switches the display to the color graphics monitor if attached.
  148. The display width defaults to 80 columns.
  149.  
  150.  
  151. VM/CTS will shutdown at 1200 noon. They should be down no more than 15 minutes. CN(01)
  152. CLS [any command]
  153. Clears the display screen.
  154. This can be issued as an independent command or as a prefix to any
  155. other command. When used as a prefix, the screen is cleared prior to
  156. the execution of the command. e.g. CLS DIR.
  157.  
  158.  
  159. DATE$
  160.  
  161. This command displays the current date and time on the screen.
  162. There is no pause for new information.
  163.  
  164.  
  165. DIR [filespec]
  166.  
  167. Syntax is the same as the DOS 1.1 DIR command except
  168. the /W and /P switches are not used. The display format is similar
  169. to the SDIR directory display program by D. Dievendorf with 2
  170. alphabetized columns showing the name, extension, size, date and time.
  171. If a color graphics adapter card is installed and set for 40 columns,
  172. a single column alphabetized list is produced. There is a pause when
  173. the screen is filled and the display continues when any key is pressed.
  174. Subsequent pauses leave 6 lines visible from the previous full screen
  175. display.
  176.  
  177.  
  178. HDIR [filespec]
  179.  
  180. Same as DIR but includes hidden files.
  181.  
  182.  
  183. SDIR [filespec]
  184.  
  185. Same as DIR but files are listed in single column format.
  186.  
  187.  
  188. DO BATCHNAME
  189.  
  190. When a file name is received as a command, 3 sequential searches are
  191. conducted on the current drive, followed by 3 similar searches on the
  192. alternate drives, if active. The order of the searches is for .COM,
  193. .EXE and then .BAT type files. The delay preceeding the execution of
  194. a batch file can be quite long if the current drive has space for a
  195. large number of files, and about 2 or 3 times as long if the batch
  196. file is on one of the alternate default drives.
  197. The DO command bypasses the first 2 searches and reduces the initial
  198. delay by a large factor.
  199. The batch processor now peeks ahead 1 byte so that the batch disk need
  200. not be reinserted in order to continue after the last batch command
  201. has been processed just to read the end of file marker.
  202.  
  203.  
  204. FF
  205.  
  206. A carriage return is sent to the printer followed by a form feed
  207. to advance the paper to the next page boundary.
  208.  
  209.  
  210. FILENAME.COM
  211.  
  212. When an .COM filename is specified with it's extension, the .EXE and
  213. .BAT searches are bypassed and produces a speedup in those cases
  214. where the subject file is on the alternate drive.
  215.  
  216.  
  217. FILENAME.EXE
  218.  
  219. When an .EXE filename is specified with it's extension, the .COM
  220. search is bypassed and produces a speedup similar to the DO command.
  221. An abbreviated extension of .E has the same effect.
  222.  
  223.  
  224. HELP
  225.  
  226. This command produces a horizontally alphabetized list of all internal
  227. commands followed by a list of all aliases in the order in which
  228. they were defined.
  229.  
  230.  
  231. MONO
  232.  
  233. Switches the display to the monochrome monitor if attached.
  234. The monochrome display width is always 80 columns.
  235.  
  236.  
  237. NAME d:DISKETTE NAME
  238.  
  239. The diskette name is written on the diskette in
  240. drive d:.
  241. The drive must be designated.
  242. The name includes all text following the colon, including leading
  243. blanks and other separators.
  244. The name appears at the top of the directory display produced by
  245. the DIR command.
  246. It can also be accessed by a short machine code routine that can
  247. be included in basic and other high level languages that are
  248. compatible with PCDOS.
  249. The name is stored at the end of the file allocation table.
  250. The maximum length of the name is determined by DOS and is
  251. dependent on the drive capacity, the sector length and the
  252. number of sectors per allocation unit (cluster).
  253. The maximum for DOS 1.10 ,1.83, 1.84 and 1.85 is about 36
  254. characters.
  255.  
  256.  
  257. PRINT FILESPEC
  258.  
  259. This is the same as the TYPE command except the output is sent to
  260. the printer. Tabs are intercepted by this routine and defined at
  261. every 8th column. No output appears on the display screen.
  262.  
  263.  
  264. STACK
  265.  
  266. Toggles the stack switch on and off. If the stack is disabled
  267. before the command is issued, it is enabled and vice-versa.
  268. If FULISTPC.COM is to be run, the stack must be disabled to
  269. allow FULISTPC to intercept commands.
  270. The status of the switch is displayed each time the command is
  271. invoked.
  272.  
  273.  
  274. TYPE [/P] FILESPEC
  275.  
  276. The TYPE command is enhanced to include the /P switch for pauses
  277. when the screen is full. Six lines from the previous screen are
  278. retained on the screen at the pause. No pauses occur if the /P
  279. switch does not preceed the file specification.
  280.  
  281.  
  282. USER ROUTINES
  283.  
  284. Space has been set aside so that users of CMD185 can insert there
  285. own machine code routines. Two contiguous areas have been defined.
  286. Their vectors can be found in the internal command list near 1800H.
  287. The byte following the command name should be any non zero value if
  288. you want the command interpreter to check for valid drive specifiers
  289. following the command name otherwise zero. The next word is the vector
  290. to the command code. The routine should end with a near return.
  291. Each area has 128 bytes available. They may be used as 2
  292. separate routines or combined into a single larger routine.
  293. The vectors in the internal command table must be set appropriately.
  294.  
  295. Thanks to GENE PLANTZ for having this on his CHICAGO BBS and making
  296. it available..
  297. Capital PC User Group Software EXchange  (301) 949-8848 for IBMPC use only
  298. 4-22-83 RMS
  299.  
  300.  
  301.  
  302.